﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CienciaYDeporte.Administracion
{
    public partial class Home : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (this.Session["user"].ToString() != "RF1" && this.Session["user"].ToString() != "admin")
                {
                    Response.Redirect("~\\Administracion\\default.aspx");
                    return;
                }


                if (this.Session["user"].ToString() == "user")
                {
                    string str = "<ul>";
                    str += " <li><a>ABM</a>";
                    str += " <ul>";
                    str += " <li><a href=\"Cotizaciones.aspx\">Cotizaciones</a></li>";
                    str += " </ul>";
                    str += " </li>";
                    str += " <li><a>Migraciones</a>";
                    str += " <ul>";
                    str += " <li><a href=\"CargarExcelMervaros.aspx\">Migrar desde excel 2003</a></li>";
                    str += " </ul>";
                    str += " </li>";
                    str += " </ul>";
                    this.menuh.InnerHtml = str;
                }
            }
            catch (Exception)
            {
                Response.Redirect("~\\Administracion\\default.aspx");
            }
        
        
        
        }
    }
}
